package com.google.code.cakedroid.base;

import android.content.Context;

/**
 *Base Context Class
 *Usually it will be as a base class.If other classes want to work  with Context objects,
 *It's recommended make that classes should extend BaseContext
 *@author androidyue
 *Last Modified:2011-12-15
 */
public class BaseContext {
	
	//Context object
	protected   Context context;
	
	/**
	 * constructor with no parameters
	 */
	public BaseContext(){
		
	}
	
	/**
	 * constructor with Context object parameter
	 * @param context Context object
	 */
	public BaseContext(Context context){
		this.setContext(context);
	}
	
	/**
	 * set the context variable
	 * @param context  Context object
	 */
	public void setContext(Context context){
		this.context=context;
	}
}
